#!/bin/sh -e

#export OPENSSL_VERSION=openssl-0.9.7e
#export WPA_SUPP_VERSION=wpa_supplicant-0.3.10

#cd openssl/$(OPENSSL_VERSION)
cd openssl/openssl-0.9.7e
if [ ! -e libssl.a ]; then
if [ ! -e install ]; then
mkdir install
./Configure linux-elf-arm linux:'arm-none-linux-gnueabi-gcc' shared --prefix=install
make 
fi
fi

cd ../..
cd wpa_supplicant/wpa_supplicant-0.3.10
make CC=arm-none-linux-gnueabi-gcc
